package org.csu.gp_store.service;

import org.csu.gp_store.entity.Account;
import org.csu.gp_store.entity.AccountAddress;
import org.jetbrains.annotations.NotNull;

import java.util.List;

public interface AccountAddressService {

    //根据AccountID获取地址
    List<AccountAddress> getAddressByAccountID(@NotNull Long accountID);

    //获取单个地址
    AccountAddress getAddressByID(@NotNull Long indexID);

    //修改账户电话
    int updatePhone(@NotNull Long indexID,String phone);

    //修改账户收件人姓名
    int updateName(@NotNull Long indexID,String name );



    //修改地址
    int updateAddress(@NotNull Long indexID,String address);

    //添加地址
    int insertAccountAddress(AccountAddress accountAddress);

    //删除地址
    int deleteAccountAddress(@NotNull Long indexID);

}
